package com.example.demo.services.imp;

import com.example.demo.entity.CityData;
import com.example.demo.entity.Datenew;
import com.example.demo.entity.Testdata;
import com.example.demo.mapper.CityDataMapper;
import com.example.demo.services.CityDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityDataServiceImp implements CityDataService {

    @Autowired
    private CityDataMapper cityDataMapper;

    @Override
    public List<CityData> selectall() {
        return cityDataMapper.selectall();
    }

    @Override
    public List<CityData> selectabroad() {
        return cityDataMapper.selectabroad();
    }

    @Override
    public List<CityData> selectterritory() {
        return cityDataMapper.selectterritory();
    }

    @Override
    public List<Datenew> selectnew() {
        return cityDataMapper.selectnew();
    }

    @Override
    public List<Datenew> selectaccumulate() {
        return cityDataMapper.selectaccumulate();
    }

    @Override
    public List<Datenew> selectaccumulate_die() {
        return cityDataMapper.selectaccumulate_die();
    }

    @Override
    public List<Datenew> selectaccumulate_sure() {
        return cityDataMapper.selectaccumulate_sure();
    }

    @Override
    public List<Datenew> selectaccumulate_vaccines() {
        return cityDataMapper.selectaccumulate_vaccines();
    }

    @Override
    public Integer updateData(String name, String sec, Integer num) {
        return cityDataMapper.updateData(name, sec, num);
    }

    @Override
    public List<Testdata> num() {
        return cityDataMapper.num();
    }

    @Override
    public List<Datenew> selectAbroad() {
        return cityDataMapper.selectAbroad();
    }

    @Override
    public Integer allUpdate(CityData cityData) {
        return cityDataMapper.allUpdate(cityData);
    }
}
